/**
 * Created by Administrator on 2015/6/1.
 */
var should = require('should');
var User = require('../models/User');

describe('User', function () {
    describe('models#findOne', function () {
        it('should return an User', function (done) {

            User.findOne({}, function (err, doc) {
                should.notEqual(doc, null);
                should.exist(doc.username);
                done();
            });

        });
    });
})
